package com.jing.weibo.mapper.info;

import java.util.List;

import com.jing.weibo.pojo.info.InfoType;


/**
 * 信息类型的Mapper
 * @author jing.yue
 * @version 2012/09/25 1.0.0
 */
public interface InfoTypeMapper {

	/**
	 * 获取所有信息类型列表
	 * @return
	 * @throws Exception
	 */
	public abstract List<InfoType> findAllInfoType() throws Exception;

	/**
	 * 获取信息类型列表
	 * @param infoType
	 * @return
	 * @throws Exception
	 */
	public abstract List<InfoType> findInfoType(InfoType infoType) throws Exception;

	/**
	 * 添加信息类型
	 * @param infoType
	 * @throws Exception
	 */
	public abstract void saveInfoType(InfoType infoType) throws Exception;

	/**
	 * 获取一级信息类型
	 * @return
	 * @throws Exception
	 */
	public abstract List<InfoType> findParentInfoType() throws Exception;

	/**
	 * 修改信息类型
	 * @param infoType
	 * @throws Exception
	 */
	public abstract void updateInfoType(InfoType infoType) throws Exception;
}